﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Mbr.Reviews.Core.Tests
{
    [TestClass]
    public class WhenProductIsAccessed
    {
        [TestMethod]
        public void ItMustNotBeEmpty()
        {
            var product = new Product("1", "Samsung Galaxy S3", new Uri("http://www.google.com"));

            Assert.IsFalse(string.IsNullOrWhiteSpace(product.Id), "Id is null or whitespace");
            Assert.IsFalse(string.IsNullOrWhiteSpace(product.Name), "Name is null or whitespace");
            Assert.IsNotNull(product.Uri, "Uri is null");
        }
    }
}
